<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // json语法 
        // var personst='{"属性名"："属性值","属性名"："属性值"}'
        // 属性名必须用""包裹上
        //属性值 字符串必须用"" ,数字可以不处理
      
        var person='{"name":"张三","age":10,"dog":{"dname":"小花"},"lovestrar":["张晓明","李晓迪","李晓东"],"firends":[{"fname":"宇智波"},{"fname":"旋涡"}]}'
        console.log(person);
        var personn=JSON.parse(person);
        console.log(personn);
       var p=JSON.stringify(personn);
       console.log(p);
   </script>
</head>
<body>
    
</body>
</html>